// $Id: WorkitemContentProvider.java 34 2011-09-22 20:04:14Z huijzer@gmail.com $
package lime.workflow.provider;

import java.util.List;

import lime.model.Workitem;

import org.eclipse.jface.viewers.IStructuredContentProvider;
import org.eclipse.jface.viewers.Viewer;

public class WorkitemContentProvider  implements IStructuredContentProvider {

	@SuppressWarnings("unchecked")
	public Object[] getElements(Object element) {
		List<Workitem> objects = (List<Workitem>) element;
		return objects.toArray();
	}

	public void inputChanged(Viewer arg0, Object arg1, Object arg2) {
		// Empty		
	}

	
	public void dispose() {
		// Empty		
	}
	
}

